package com.whmall.service.crm.module.companyuser.impl;

import cn.hutool.core.util.StrUtil;
import com.whmall.service.crm.entity.dto.companyuser.CompanyUserPlatformSaveReqDTO;
import org.springframework.stereotype.Component;

@Component
public class CompanyUserPlatformValidator {

    /**
     * 用户关注插入时校验
     * @param reqDTO
     */
    public void followerValidator(CompanyUserPlatformSaveReqDTO reqDTO){

        if (StrUtil.isEmpty(reqDTO.getPlatformId())){
            throw new IllegalArgumentException("平台ID不能为空");
        }


    }

}
